package com.ruoyi.mapper;

import com.ruoyi.domain.Image;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * TODO
 *
 * @author chenchuan2
 * @date 2023-01-13 20:24:20
 */
public interface ImageMapper extends Mapper<Image> {

    Image queryUserImage(@Param("openId") String openId, @Param("imageHash") String imageHash);

    Image queryByTransId(@Param("transId") String transId);

    Image queryNewest(@Param("openId") String openId);

    void updateImageTime(@Param("id") Long id);
}
